﻿<Button Icon="fa fa-fa" Text="带 Footer 弹窗" Color="Color.Success" OnClick="@ShowFooterComponent" />

@code {
    private Task ShowFooterComponent()
    {
        var op = new SwalOption()
        {
            Category = SwalCategory.Error,
            Title = "Oops...",
            Content = "Something went wrong!",
            ShowFooter = true,
            FooterTemplate = DynamicComponent.CreateComponent<SwalFooter>().Render()
        };
        SwalService.Show(op);
        return Task.CompletedTask;
    }
}